<?php

namespace Modules\Admin\Http\Controllers\Trash;

use Modules\Common\Models\Trash;
use Modules\Common\Util\Api;


class Retrieve 
{


    /**
     *@Route(path=/api/admin/trash)
    */
    public function retrieve()
    {
        $data = Trash::latest()
        ->select(['id' , 'desc' , 'status' , 'admin_id' , 'admin_name' , 'created_at'])
        ->paginate(request('per_page', 15));
        return Api::success($data);
    }


}
